# -*- coding: utf-8 -*-

from flask import Blueprint

tb = Blueprint(
    'tb',
    __name__,
    url_prefix='/tb',
    template_folder='templates'
)

@tb.record_once
def init_tb(state):
    app, bp = state.app, state.blueprint
    bp.app = app

    app.add_url_rule(
        '/static/tb/asset/<path:filename>',
        'tb.asset'
    )

from . import views
